package dongshi.daddy.main;

import dongshi.daddy.service.scoperemote.ScopeRemoteService_1;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class ConsumerWithScopeRemoteMain1 {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context
                = new ClassPathXmlApplicationContext("consumer-with-scoperemote1.xml");
        context.start();
        ScopeRemoteService_1 scopeRemoteService = (ScopeRemoteService_1) context.getBean("myConsumerSideScopeRemoteService1");
        System.err.println(scopeRemoteService.sayHi("helloooooo"));
        System.in.read();
    }
}


